Azure Communication Chat Service (stable:2025-03-15)

2025/06/17 • 16 new methods

ChatThread_ListChatReadReceipts (new)
Description Gets chat message read receipts for a thread.
Reference Link ¶

⚼ Request

GET:  /chat/threads/{chatThreadId}/readReceipts
{
chatThreadId: string ,
maxPageSize: integer ,
skip: integer ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
senderCommunicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
chatMessageId: string ,
readOn: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
ChatThread_SendChatReadReceipt (new)
Description Sends a read receipt event to a thread, on behalf of a user.
Reference Link ¶

⚼ Request

POST:  /chat/threads/{chatThreadId}/readReceipts
{
chatThreadId: string ,
api-version: string ,
sendReadReceiptRequest:
{
chatMessageId: string ,
}
,
}

⚐ Response (200)

{}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
ChatThread_SendChatMessage (new)
Description Sends a message to a thread.
Reference Link ¶

⚼ Request

POST:  /chat/threads/{chatThreadId}/messages
{
chatThreadId: string ,
api-version: string ,
sendChatMessageRequest:
{
content: string ,
senderDisplayName: string ,
type: enum ,
metadata: object ,
}
,
}

⚐ Response (201)

{
id: string ,
}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
ChatThread_ListChatMessages (new)
Description Gets a list of messages from a thread.
Reference Link ¶

⚼ Request

GET:  /chat/threads/{chatThreadId}/messages
{
chatThreadId: string ,
maxPageSize: integer ,
startTime: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
type: enum ,
sequenceId: string ,
version: string ,
content:
{
message: string ,
topic: string ,
participants:
[
{
communicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
displayName: string ,
shareHistoryTime: string ,
metadata: object ,
}
,
]
,
attachments:
[
{
id: string ,
attachmentType: enum ,
name: string ,
url: string ,
previewUrl: string ,
}
,
]
,
initiatorCommunicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
}
,
senderDisplayName: string ,
createdOn: string ,
senderCommunicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
deletedOn: string ,
editedOn: string ,
metadata: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
ChatThread_GetChatMessage (new)
Description Gets a message by id.
Reference Link ¶

⚼ Request

GET:  /chat/threads/{chatThreadId}/messages/{chatMessageId}
{
chatThreadId: string ,
chatMessageId: string ,
api-version: string ,
}

⚐ Response (200)

{
id: string ,
type: enum ,
sequenceId: string ,
version: string ,
content:
{
message: string ,
topic: string ,
participants:
[
{
communicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
displayName: string ,
shareHistoryTime: string ,
metadata: object ,
}
,
]
,
attachments:
[
{
id: string ,
attachmentType: enum ,
name: string ,
url: string ,
previewUrl: string ,
}
,
]
,
initiatorCommunicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
}
,
senderDisplayName: string ,
createdOn: string ,
senderCommunicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
deletedOn: string ,
editedOn: string ,
metadata: object ,
}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
ChatThread_UpdateChatMessage (new)
Description Updates a message.
Reference Link ¶

⚼ Request

PATCH:  /chat/threads/{chatThreadId}/messages/{chatMessageId}
{
chatThreadId: string ,
chatMessageId: string ,
api-version: string ,
updateChatMessageRequest:
{
content: string ,
metadata: object ,
}
,
}

⚐ Response (204)

{}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
ChatThread_DeleteChatMessage (new)
Description Deletes a message.
Reference Link ¶

⚼ Request

DELETE:  /chat/threads/{chatThreadId}/messages/{chatMessageId}
{
chatThreadId: string ,
chatMessageId: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
ChatThread_ListChatParticipants (new)
Description Gets the participants of a thread.
Reference Link ¶

⚼ Request

GET:  /chat/threads/{chatThreadId}/participants
{
chatThreadId: string ,
maxPageSize: integer ,
skip: integer ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
communicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
displayName: string ,
shareHistoryTime: string ,
metadata: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
ChatThread_RemoveChatParticipant (new)
Description Remove a participant from a thread.
Reference Link ¶

⚼ Request

POST:  /chat/threads/{chatThreadId}/participants/:remove
{
chatThreadId: string ,
api-version: string ,
participantCommunicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
}

⚐ Response (204)

{}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
ChatThread_AddChatParticipants (new)
Description Adds thread participants to a thread. If participants already exist, no change occurs.
Reference Link ¶

⚼ Request

POST:  /chat/threads/{chatThreadId}/participants/:add
{
chatThreadId: string ,
api-version: string ,
addChatParticipantsRequest:
{
participants:
[
{
communicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
displayName: string ,
shareHistoryTime: string ,
metadata: object ,
}
,
]
,
}
,
}

⚐ Response (201)

{
invalidParticipants:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
]
,
}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
Chat_CreateChatThread (new)
Description Creates a chat thread.
Reference Link ¶

⚼ Request

POST:  /chat/threads
{
repeatability-request-id: string ,
api-version: string ,
createChatThreadRequest:
{
topic: string ,
participants:
[
{
communicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
displayName: string ,
shareHistoryTime: string ,
metadata: object ,
}
,
]
,
metadata: object ,
retentionPolicy:
{
kind: enum ,
}
,
}
,
}

⚐ Response (201)

{
chatThread:
{
id: string ,
topic: string ,
createdOn: string ,
createdByCommunicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
deletedOn: string ,
metadata: object ,
retentionPolicy:
{
kind: enum ,
}
,
}
,
invalidParticipants:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
]
,
}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
Chat_ListChatThreads (new)
Description Gets the list of chat threads of a user.
Reference Link ¶

⚼ Request

GET:  /chat/threads
{
maxPageSize: integer ,
startTime: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
topic: string ,
deletedOn: string ,
lastMessageReceivedOn: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
ChatThread_UpdateChatThreadProperties (new)
Description Updates a thread's properties.
Reference Link ¶

⚼ Request

PATCH:  /chat/threads/{chatThreadId}
{
chatThreadId: string ,
api-version: string ,
updateChatThreadRequest:
{
topic: string ,
metadata: object ,
retentionPolicy:
{
kind: enum ,
}
,
}
,
}

⚐ Response (204)

{}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
ChatThread_GetChatThreadProperties (new)
Description Gets a chat thread's properties.
Reference Link ¶

⚼ Request

GET:  /chat/threads/{chatThreadId}
{
chatThreadId: string ,
api-version: string ,
}

⚐ Response (200)

{
id: string ,
topic: string ,
createdOn: string ,
createdByCommunicationIdentifier:
{
kind: enum ,
rawId: string ,
communicationUser:
{
id: string ,
}
,
phoneNumber:
{
value: string ,
}
,
microsoftTeamsUser:
{
userId: string ,
isAnonymous: boolean ,
cloud: enum ,
}
,
microsoftTeamsApp:
{
appId: string ,
cloud: enum ,
}
,
}
,
deletedOn: string ,
metadata: object ,
retentionPolicy:
{
kind: enum ,
}
,
}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
Chat_DeleteChatThread (new)
Description Deletes a thread.
Reference Link ¶

⚼ Request

DELETE:  /chat/threads/{chatThreadId}
{
chatThreadId: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}
ChatThread_SendTypingNotification (new)
Description Posts a typing event to a thread, on behalf of a user.
Reference Link ¶

⚼ Request

POST:  /chat/threads/{chatThreadId}/typing
{
chatThreadId: string ,
api-version: string ,
sendTypingNotificationRequest:
{
senderDisplayName: string ,
}
,
}

⚐ Response (200)

{}

⚐ Response (401)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (403)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (429)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}

⚐ Response (503)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror: string ,
}
,
}